package com.lanxin.zc.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.lanxin.bx.vo.AllinformalVo;
import com.lanxin.zc.entity.ZcAsset;
import com.lanxin.zc.mapper.ZcAssetMapper;
import com.lanxin.zc.service.IZcAssetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanxin.zc.vo.ZcassetVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2025-07-16
 */
@Service
public class ZcAssetServiceImpl extends ServiceImpl<ZcAssetMapper, ZcAsset> implements IZcAssetService {
    @Autowired
    private ZcAssetMapper zcAssetMapper;

    @Override
    public Page<ZcassetVo> selectzcassetList(Integer page, Integer pageSize, String assetCode, String assetNumber, String assetName, String type, String keeper, String status) {
        PageHelper.startPage(page, pageSize);

        List<ZcassetVo> zcassetVoList=zcAssetMapper.selectzcassetList(assetCode,assetNumber,assetName,type,keeper,status);
        return (Page<ZcassetVo>) zcassetVoList;
    }
}
